package com.program.houai.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.program.houai.entity.UserEntity;
import com.program.houai.vo.UserOrderVO;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @version v1.0
 * @ProjectName: EOrder-master
 * @ClassName: UserMapper
 * @Description: TODO(一句话描述该类的功能)
 * @Author: Topcheer
 * @Date: 2024/8/24 21:18
 */
@Mapper
public interface UserMapper extends BaseMapper<UserEntity> {

    IPage<UserOrderVO> getAllOrderList(@Param("page") IPage page,@Param("userIdList") List<Integer> userIdList ,
                                       @Param("txnStatus")  Integer txnStatus,@Param("isRoyalty")  String isRoyalty
    ,@Param("startTime")String startTime,@Param("endTime")String endTime);

     List<UserOrderVO>  getAllOrderList(@Param("userIdList") List<Integer> userIdList,@Param("txnStatus")  Integer txnStatus,
                                        @Param("isRoyalty")  String isRoyalty,
     @Param("startTime")String startTime,@Param("endTime")String endTime);


    public  int updateUserMoney(@Param("userId") int userId,@Param("money") int version,@Param("totalMoney") int totalMoney);

}
